﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace QuanLyCayXanh.Models
{
    [Table("District")]
    public class District
    {
        public District()
        {
            this.Wards = new HashSet<Ward>();
        }
        public int Id { get; set; }
        [Required(ErrorMessage = "{0} không được bỏ trống!")]
        [Display(Name="Tên quận/huyện")]
        public string Name { get; set; }
        public virtual ICollection<Ward> Wards { get; set; }
    }
}